import request from '@/utils/request'
import defaultSettings from '@/settings'
import { praseStrEmpty } from '@/utils/ruoyi'


//业务退回应答录入
export const apiUrlConfigQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessReturn/CcmsBusinessReturnResponseEntry/search`,
}

//业务退回应答录入beps明细
export const bepsapiUrlConfigQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessReturn/CcmsBusinessReturnResponseEntry/searchDetail`,
}

//业务退回应答查询
export const apiUrlConfigResponseQuery = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessReturn/CcmsBusinessReturnResponseQuery/search`,
}

// 业务退回应答录入
export function ccmsBusinessReturnResponseEntryDeatil(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessReturn/CcmsBusinessReturnResponseEntry/detail?reqId=${data.reqId}&oriPkgtype=${data.oriPkgtype}&backType=${data.backType}`,
    method: 'get'
  })
}


// 业务退回应答录入
export function ccmsBusinessReturnResponseEntrySave(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessReturn/CcmsBusinessReturnResponseEntry/save`,
    method: 'post',
    data:data
  })
}


// 业务退回应答查询明细
export function ccmsBusinessReturnResponsQueryDetail(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/bsInformation/businessReturn/CcmsBusinessReturnResponseQuery/detail?id=${data.id}`,
    method: 'get'
  })
}
